
<table>
    <tr>
        <th>姓名</th>
        <th>性别</th>
        <th>部门</th>
        <th>职业</th>
        <th>工号</th>
        <th>日期</th>
        <th>工资</th>
    </tr>
    <div id="div1"></div>
</table>
    <script>
        function createTab() {
            document.write("<tr>")
            for(i=0;i<5;i++){
                document.write("<td>" + i + "</td>")
            }
            document.write("</tr>")
            document.write("</table>")
        }
    </script>
